package com.distributeredis.redis_springboot.springpoi.controller;

import com.distributeredis.redis_springboot.springpoi.service.PoiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
@RequestMapping("/poi")
public class PoiTestController {
    @Autowired
    private PoiService poiService;
    // poi导出字段带有超链接可以点击跳转效果
    @PostMapping("/p1")
    public void PoiTest1(HttpServletResponse response) throws IOException {
        poiService.poiTest1(response);
    }
}
